package com.ticket.sass.admin.dto.output.commodity;

/**
 * @author ywb
 * @date 2023-03-31 15:06
 */

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel("订单详情")
public class CommodityOrderDetailOutput implements Serializable {
    @ApiModelProperty("订单总额")
    private BigDecimal totalPrice;
    @ApiModelProperty("卖品列表")
    private List<Commodity> commodities;
    
    @Data
    @ApiModel("卖品")
    public static class Commodity implements Serializable {
        @ApiModelProperty("卖品id")
        private int id;
        @ApiModelProperty("卖品标题")
        private String title;
        @ApiModelProperty("卖品图片")
        private String img;
        @ApiModelProperty("购买数量")
        private int num;
        @ApiModelProperty("购买价格")
        private String price;
    }
}

